#include <jni.h>
#include <GLES/gl.h>
#include <ft2build.h>
#include FT_FREETYPE_H

struct font
{
    FT_Face face;           // font face
    GLuint* tex;            // font textures array
    FT_Pos* advance;        // font advance array
    int n_tex;              // textures size
};

int font_init(struct font* f, const char* fname);
void font_draw(struct font* f, float x, float y, int c);
void font_draw_str(struct font* f, float x, float y, const char* s);
int font_destroy(struct font* f);
